forming a dynamic curve